<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧请假管理系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <link href="css/index.css" rel="stylesheet">
</head>
<body>
<!-- 顶部导航栏 -->
<nav class="top-navbar">
    <div class="nav-brand">
        <img src="images/user.jpg" alt="Logo" class="logo">
        <span class="brand-name">智慧请假管理系统</span>
    </div>
    <div class="nav-tools">
        <div class="search-box">
            <input type="text" placeholder="搜索...">
            <i class="fas fa-search"></i>
        </div>
        <div class="theme-toggle">
            <i class="fas fa-sun"></i>
            <label class="switch">
                <input type="checkbox" id="themeToggle">
                <span class="slider"></span>
            </label>
            <i class="fas fa-moon"></i>
        </div>
        <div class="notifications">
            <i class="fas fa-bell"></i>
            <span class="badge">2</span>
        </div>

    </div>
</nav>

<div class="main-container">
    <!-- 侧边栏 -->
    <aside class="sidebar">
        <div class="menu-section">
            <h3>系统管理</h3>
            <ul class="menu-list">
                <li class="menu-item" data-page="admin-setting">
                    <i class="fas fa-user-cog"></i>
                    <span>个人设置</span>
                </li>
                <li class="menu-item" data-page="departments">
                    <i class="fas fa-building"></i>
                    <span>二级学院管理</span>
                </li>
                <li class="menu-item" data-page="class-management">
                    <i class="fas fa-users"></i>
                    <span>班级管理</span>
                </li>
                <li class="menu-item" data-page="course-management">
                    <i class="fas fa-book"></i>
                    <span>课程管理</span>
                </li>
                <li class="menu-item" data-page="instructor-management">
                    <i class="fas fa-chalkboard-teacher"></i>
                    <span>辅导员管理</span>
                </li>
            </ul>
        </div>

        <div class="menu-section">
            <h3>快捷操作</h3>
            <ul class="menu-list">
                <li class="menu-item">
                    <i class="fas fa-plus-circle"></i>
                    <span>新增请假</span>
                </li>
                <li class="menu-item">
                    <i class="fas fa-tasks"></i>
                    <span>待审批</span>
                    <span class="badge">3</span>
                </li>
            </ul>
        </div>
    </aside>

    <!-- 主要内容区 -->
    <main class="main-content">
        <!-- 面包屑导航 -->
        <div class="breadcrumb-nav">
            <i class="fas fa-home"></i>
            <span>首页</span>
            <i class="fas fa-chevron-right"></i>
            <span id="current-page">个人设置</span>
        </div>

        <!-- 动态内容区域 -->
        <div id="content-area" class="content-wrapper">
            <%
                String pages = request.getParameter("page");
                if (pages == null || pages.isEmpty()) {
            %>
            <%@ include file="/WEB-INF/views/admin/admin_settings.jsp" %>
            <%
            } else if ("admin-setting".equals(pages)) {
            %>
            <%@ include file="/WEB-INF/views/admin/admin_settings.jsp" %>
            <%
            } else if ("departments".equals(pages)) {
            %>
            <%@ include file="/WEB-INF/views/admin/departments.jsp" %>
            <%
            } else if ("class-management".equals(pages)) {
            %>
            <%@ include file="/classManagement.jsp" %>
            <%
            } else if ("course-management".equals(pages)) {
            %>
            <%@ include file="/course.jsp" %>
            <%
            } else if ("instructor-management".equals(pages)) {
            %>
            <%@ include file="/WEB-INF/views/admin/instructor.jsp" %>
            <%
                }
            %>
        </div>
    </main>
</div>

<!-- 通知面板 -->
<div class="notifications-panel">
    <div class="panel-header">
        <h3>通知中心</h3>
        <button class="close-btn">
            <i class="fas fa-times"></i>
        </button>
    </div>
    <div class="notification-list">
        <!-- 通知内容将通过JS动态加载 -->
    </div>
</div>

<!-- 加载动画 -->
<div id="loadingSpinner" class="loading-overlay">
    <div class="spinner"></div>
    <p>加载中...</p>
</div>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="js/script.js"></script>
</body>
</html>